package com.bank.repository;

import com.bank.entity.Material;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MaterialRepo extends CustomerRepo<Material, Integer> {

    @Query("SELECT m.name FROM Material m order by createTime desc")
    List<String> findMaterialList();
}
